package com.cool.modules.finance.entity.category;

import com.cool.core.base.BaseEntity;
import com.mybatisflex.annotation.Column;
import com.mybatisflex.annotation.Table;
import com.tangzc.mybatisflex.autotable.annotation.ColumnDefine;
import lombok.Data;
import lombok.EqualsAndHashCode;

@EqualsAndHashCode(callSuper = true)
@Data
@Table(value = "finance_category",comment = "记账分类表")
public class FinanceCategoryEntity extends BaseEntity<FinanceCategoryEntity> {

    @ColumnDefine(comment = "记账分类名称",notNull = true,type = "varchar(255)")
    private String categoryName;

    @ColumnDefine(comment = "记账分类代码",notNull = true,type = "varchar(255)")
    private String categoryCode;

    @ColumnDefine(comment = "记账分类详细",type = "text")
    private String categoryDetail;

    @ColumnDefine(comment = "家庭id",notNull = true,type = "bigint")
    private Long familyId;

    // 家庭名称
    @Column(ignore = true)
    private String familyName;

    @ColumnDefine(comment = "热度排序",notNull = true,defaultValue ="0",type = "bigint")
    private Integer hotOrder;
}
